#ifndef _USART4__H
#define _USART4__H
#include "stdio.h"
#include "at32f435_437.h"
#include "at32f435_437_int.h"
//#include "delay.h"
#include "string.h"
#include "Task_mpu.h"

#define UART4_GPIO_CRM_CLK          CRM_GPIOA_PERIPH_CLOCK
#define UART4_TX_PIN                GPIO_PINS_0
#define UART4_RX_PIN                GPIO_PINS_1
#define UART4_GPIO                  GPIOA


#define UART4_TX_PIN_SOURCE         UART4_TX_PIN
#define UART4_RX_PIN_SOURCE         UART4_RX_PIN
#define UART4_PIN_MUX_NUM        	GPIO_MUX_8
#define UART4_BUFLEN 				64

void Uart4_Init(uint32_t baudrate);

extern u8 Usart4_RXBUF[UART4_BUFLEN];

void Uart4Send(uint8_t *buff,uint8_t size);

#endif
